#!/usr/bin/python
# --coding:utf-8--


import pymysql

db = pymysql.connect(
    host="127.0.0.1",
    user='root',
    password='123456',
    database='sql_prac',
    port=3306
)

cursor = db.cursor()
cursor.execute("select * from question")
data = cursor.fetchone()
print(data)
db.close()
